From: Alastair Tse Date: Wed, 31 Jan 2007 15:22:33 +0000 (+0000) Subject: [XEND] Fix typos in vfb/vnc detect in image.py X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15358^2~32^2~1^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=68429d2e8070b99ae6e29ffa75d794293b8f6b68;p=xen.git [XEND] Fix typos in vfb/vnc detect in image.py Signed-off-by: Alastair Tse --- diff --git a/tools/python/xen/xend/image.py b/tools/python/xen/xend/image.py index eeb8bd0ebd..e1f87e1e8f 100644 --- a/tools/python/xen/xend/image.py +++ b/tools/python/xen/xend/image.py @@ -450,10 +450,10 @@ class HVMImageHandler(ImageHandler): vnc_config = {} has_vfb = False - has_vnc = int(vmConfig['image'].get('vnc')) != 0 + has_vnc = int(vmConfig['image'].get('vnc', 0)) != 0 for dev_uuid in vmConfig['console_refs']: - dev_type, dev_info = vmConfig['devices'][devuuid] - if dev_type == 'rfb': + dev_type, dev_info = vmConfig['devices'][dev_uuid] + if dev_type == 'vfb': vnc_config = dev_info.get('other_config', {}) has_vfb = True break